package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingMorningItem;
import com.api.shopapi.mapper.NursingSchedulingMorningItemMapper;
import com.api.shopapi.service.NursingSchedulingMorningItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingSchedulingMorningItemServiceImplOne")
public class NursingSchedulingMorningItemServiceImpl implements NursingSchedulingMorningItemService {

    @Autowired
    private NursingSchedulingMorningItemMapper nursingSchedulingMorningItemMapper;


    @Override
    public int insert(NursingSchedulingMorningItem nurseSchedulingMorningItem) {
        return nursingSchedulingMorningItemMapper.insert(nurseSchedulingMorningItem);
    }

    @Override
    public int updateByNurseSchedulingMorningItemCode(NursingSchedulingMorningItem nurseSchedulingMorningItem) {
        return nursingSchedulingMorningItemMapper.updateByNursingSchedulingMorningItemCode(nurseSchedulingMorningItem);
    }

    @Override
    public int deleteByNurseSchedulingMorningItemCode(String nurseSchedulingMorningItemCode) {
        return nursingSchedulingMorningItemMapper.deleteByNursingSchedulingMorningItemCode(nurseSchedulingMorningItemCode);
    }

    @Override
    public NursingSchedulingMorningItem getByNursingSchedulingMorningItemCode(String nurseSchedulingMorningItemCode) {
        return nursingSchedulingMorningItemMapper.getByNursingSchedulingMorningItemCode(nurseSchedulingMorningItemCode);
    }

    @Override
    public List<NursingSchedulingMorningItem> getListByNursingSchedulingMorningCode(String nursingSchedulingMorningCode) {
        return nursingSchedulingMorningItemMapper.getListByNursingSchedulingMorningCode(nursingSchedulingMorningCode);
    }

    @Override
    public int deleteByNurseSchedulingMorningCode(String nursingSchedulingMorningCode) {
        return nursingSchedulingMorningItemMapper.deleteByNurseSchedulingMorningCode(nursingSchedulingMorningCode);
    }

    @Override
    public NursingSchedulingMorningItem getByNursingSchedulingMorningCodeAndNurseAideCode(String nursingSchedulingMorningCode, String nurseAideCode) {
        return nursingSchedulingMorningItemMapper.getByNursingSchedulingMorningCodeAndNurseAideCode(nursingSchedulingMorningCode,nurseAideCode);
    }

    @Override
    public NursingSchedulingMorningItem getByNursingSchedulingMorningCodeAndNurseCode(String nursingSchedulingMorningCode, String nurseCode) {
        return nursingSchedulingMorningItemMapper.getByNursingSchedulingMorningCodeAndNurseCode(nursingSchedulingMorningCode,nurseCode);
    }
}
